/**
 * @Author: 殷世杰
 * @Date: 2019/09/24
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 销售回访查询列表
export const getCareObjList = params => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/customerCare/querySalesVisitByPage`, { params });
// 获取关爱对象信息
export const getCareInfo = careTargetId => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/customerCare/findSalesVistByCareTargetId/${careTargetId}`);
// 客户信息
export const getPotentials = soVinId => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/salesOrders/potentials/${soVinId}`);
// 关爱任务
export const queryCareTask = params => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/careTask/careTasks/queryCareTask/${params.employeeId}/${params.careTargetId}`, { params });
// 查询问卷
export const questionnaire = params => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/careTask/careTasks/careRecord/questionnaire`, { params });
// 查询问卷2
export const getQuestionnaireByID = params => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/careTask/careTasks/careRecord/questionnaire2`, { params });
// 根据商机ID查询联系人
export const queryCustomerContactList = params => axios.get(`${SERVER.CYXDMS_CLUE}/potenCus/queryCustomerContactList`, { params });
// 保存关爱
export const insertCareRecord = params => axios.post(`${SERVER.CYXDMS_CUSTOMERCARE}/customerCare/insertCareRecord`, params);
